package com.fouram.core.exception;

import com.fouram.core.enums.HttpCodeEnum;

/**
 * @author Liup
 */
public class BizException extends RuntimeException {

	private int code = HttpCodeEnum.FAIL.getCode();
	
	private static final long serialVersionUID = 1L;

	public BizException() {
	}

	public BizException(Throwable ex) {
		super(ex);
	}

	public BizException(String message) {
		super(message);
	}

	public BizException(int code, String message) {
		super(message);
		this.code = code;
	}

	public BizException(String message, Throwable ex) {
		super(message, ex);
	}

	public int getCode() {
		return code;
	}
}
